<template>
  <div>
    <el-card class="box-card">
      <div slot="header">
        <span>民意测试</span>
      </div>
      <div class="content">
        <el-form
          :label-position="labelPosition"
          label-width="80px"
          :model="formLabelAlign"
          size="small"
        >
          <el-form-item label="合格率">
            {{ formLabelAlign.name }}
          </el-form-item>
          <el-form-item label="分数">
            <el-input v-model="formLabelAlign.type"></el-input>
            <el-button
              type="primary"
              :disabled="loading"
              @click="list(1)"
              style="margin-left: 10px"
              >确认</el-button
            >
            <el-button
              type="danger"
              :disabled="loading"
              @click="changeDialogVisible()"
              style="margin-left: 10px"
              >打回</el-button
            >
          </el-form-item>
        </el-form>
      </div>
    </el-card>
    <el-card class="box-card">
      <div slot="header">
        <span>辅导员打分</span>
      </div>
      <div class="content">
        <el-form
          :label-position="labelPosition"
          label-width="80px"
          :model="formLabelAlign"
          size="small"
        >
          <el-form-item label="辅导员姓名">
            {{ formLabelAlign.name }}
          </el-form-item>
          <el-form-item label="分数">
            <el-input v-model="formLabelAlign.type"></el-input>
            <el-button
              type="primary"
              :disabled="loading"
              @click="list(1)"
              style="margin-left: 10px"
              >确认</el-button
            >
            <el-button
              type="danger"
              :disabled="loading"
              @click="changeDialogVisible()"
              style="margin-left: 10px"
              >打回</el-button
            >
          </el-form-item>
        </el-form>
      </div>
    </el-card>
    <el-card class="box-card">
      <div slot="header">
        <span>支部书记打分</span>
      </div>
      <div class="content">
        <el-form
          :label-position="labelPosition"
          label-width="80px"
          :model="formLabelAlign"
          size="small"
        >
          <el-form-item label="姓名">
            {{ formLabelAlign.name }}
          </el-form-item>
          <el-form-item label="分数">
            <el-input v-model="formLabelAlign.type"></el-input>
            <el-button
              type="primary"
              :disabled="loading"
              @click="list(1)"
              style="margin-left: 10px"
              >确认</el-button
            >
            <el-button
              type="danger"
              :disabled="loading"
              @click="changeDialogVisible()"
              style="margin-left: 10px"
              >打回</el-button
            >
          </el-form-item>
        </el-form>
      </div>
    </el-card>
    <el-dialog
      title="确认打回申请书吗？"
      :visible.sync="dialogVisible"
      width="50%"
      append-to-body
    >
      <span style="margin: 15px">请输入打回原因或建议：</span>
      <el-input
        v-model="input"
        placeholder="请输入内容"
        size="mini"
        type="textarea"
      ></el-input>
      <span slot="footer" class="dialog-footer">
        <el-button @click="dialogVisible = false">取 消</el-button>
        <el-button type="primary" @click="handlePut(rowId, '未通过', input)"
          >确 定</el-button
        >
      </span>
    </el-dialog>
  </div>
</template>

<script>
export default {
  data () {
    return {
      formLabelAlign: {
        name: '6666',
        region: '',
        type: ''
      },
      src: 'https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpeg',
      srcList: [
        'https://fuss10.elemecdn.com/8/27/f01c15bb73e1ef3793e64e6b7bbccjpeg.jpeg',
        'https://fuss10.elemecdn.com/1/8e/aeffeb4de74e2fde4bd74fc7b4486jpeg.jpeg'
      ],
      dialogVisible: false // 对话框
    }
  },
  methods: {
    changeDialogVisible () {
      this.dialogVisible = true
    }
  }
}
</script>

<style scoped>
</style>
